package ru.lenwp.example;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by Lenar on 01.12.2014.
 */
@Component

public class HelloWhithDate {
    @Autowired
    private IHelloWorld iHelloWorld;

    public void showData(){
        iHelloWorld.sayHello();
        System.out.println(new Date());
    }
}
